package com.ishowcode.service.impl;

import com.ishowcode.mappers.UserInfoMapper;
import com.ishowcode.entity.Result;
import com.ishowcode.entity.User;
import com.ishowcode.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    UserInfoMapper userInfoMapper;
    @Override
    public Integer addUser(User user) {

        return userInfoMapper.addUser(user);
    }

    @Override
    public User queryUserByEmail(String email) {
        return userInfoMapper.queryUserByEmail(email);
    }

    @Override
    public User queryUserByNickName(String NickName) { return userInfoMapper.queryUserByNickName(NickName);}

    @Override
    public Integer updateUser(User user) {
        return userInfoMapper.updateUser(user);
    }
}
